package com.cbt.cbtBlog.enums;

public enum ResultEnum {
   ERROR(500, "内部错误"),
   SUCCESS(200, "成功"),
   DATA_NULL(600, "暂无数据"),
   CODE_ERROR(510, "验证码错误"),
   DATA_TIMEOUT(512, "验证码过期"),
   CHECK_ERROR(511, "数据格式验证错误"),
   CHECK_TELREPEAT(520, "手机号已被注册"),
   CHECK_EMAILREPEAT(521, "邮箱已被注册"),
   CHECK_NAMEREPEAT(523, "重复用户名"),
   CHECK_PWDMISTAKE(522, "输入密码错误"),
   NOT_LOGIN(700, "未登录");

   private Integer code;
   private String msg;

   private ResultEnum(Integer code, String msg) {
      this.code = code;
      this.msg = msg;
   }

   public Integer getCode() {
      return this.code;
   }

   public String getMsg() {
      return this.msg;
   }
}
